list(APPEND srcs jpeg-9a/jaricom.c
                jpeg-9a/jcomapi.c
                jpeg-9a/jutils.c
                jpeg-9a/jerror.c
                jpeg-9a/jmemmgr.c
                jpeg-9a/jdapimin.c
                jpeg-9a/jdapistd.c
                jpeg-9a/jdarith.c
                jpeg-9a/jdmaster.c
                jpeg-9a/jdinput.c
                jpeg-9a/jdmarker.c
                jpeg-9a/jdhuff.c
                jpeg-9a/jdmainct.c
                jpeg-9a/jdcoefct.c
                jpeg-9a/jddctmgr.c
                jpeg-9a/jdpostct.c
                jpeg-9a/jdsample.c
                jpeg-9a/jdcolor.c
                jpeg-9a/jquant2.c
                jpeg-9a/jquant1.c
                jpeg-9a/jdmerge.c
                jpeg-9a/jmemnobs.c
                jpeg-9a/wrppm.c
                jpeg-9a/jidctint.c
                jpeg-9a/jidctflt.c
                jpeg-9a/jidctfst.c)

list(APPEND iclds "jpeg-9a" "include")

idf_component_register(SRCS "jpegd2.c" "${srcs}"
                    INCLUDE_DIRS "${iclds}")
